package com.basic.business.operationStoreConfig.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 运营店铺配置对象 t_operation_store_config
 *
 * @author zhaoxy_jn@163.com
 * @date 2025-07-23
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TOperationStoreConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 配置名称
     */
    @ExcelProperty(value = "配置名称")
    private String configName;

    /**
     * 配置类型
     */
    @ExcelProperty(value = "配置类型")
    private Integer configType;

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 配置内容
     */
    @ExcelProperty(value = "配置内容")
    private String configStore;

    /**
     * 部门名称
     */
    private String deptName;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
